Conversation
|
Commit: 257f2d6
18 interesting tests: 7 KNOWN, 7 SKIP, 4 flaky
Top 22 slowest tests (at least 2 minutes):
|
bcc9026 to
1fb43f8
Compare
1fb43f8 to
7599847
Compare
7599847 to
257f2d6
Compare
pkosiec
left a comment
There was a problem hiding this comment.
It's so fast now 🚀 awesome work! Just a few comments
| manualLabel = "Can't find it? Search by name..." | ||
| } | ||
| options = append(options, huh.NewOption(manualLabel, manualID)) | ||
| desc += " (showing first 500)" |
There was a problem hiding this comment.
we should use len(fetcher.Items) here, right?
| // destDir and launches `npm ci` in the background. The caller should read the | ||
| // returned channel after copyTemplate to get the result. Returns nil if the | ||
| // template is not a Node.js project or npm is not available. | ||
| func startBackgroundNpmInstall(ctx context.Context, srcProjectDir, destDir, projectName string) <-chan error { |
| err = huh.NewSelect[string](). | ||
| Title(title). | ||
| Description(fmt.Sprintf("%d apps found — type to filter", len(existingApps))). | ||
| Description(fmt.Sprintf("%d apps found — / to filter", len(existingApps))). |
There was a problem hiding this comment.
I'm just thinking - maybe our filtering should work with an exact name? 🤔
Warehouses.GetByName
w.ServingEndpoints.GetByName()
etc.
EDIT: Ignore this comment - for Lakebase there's no such method 😞 so probably that's not worth to switch to such solution, especially that it expects an exact name AFAIK
|
|
||
| desc := fmt.Sprintf("%d available — / to filter", len(fetcher.Items)) | ||
| if fetcher.HasMore && !fetcher.Capped { | ||
| options = append(options, huh.NewOption("↓ Load more...", moreID)) |
There was a problem hiding this comment.
Is it possible to somehow has the "Load more" option visible in the same way as the "/ to filter" instead of a need to go to the last item and load more projects?
Imagine that there's a "/ to filter, N to load more"
WDYT?
| err := huh.NewSelect[string](). | ||
| Title(title). | ||
| Description(fmt.Sprintf("%d available — type to filter", len(items))). | ||
| Description(fmt.Sprintf("%d available — / to filter", len(items))). |

Changes
Why
Tests